package com.example.proyyj.Service;

import com.example.proyyj.Entity.CollectionExhibit;
import com.example.proyyj.Impl.CollectionExhibitImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CollectionExhibitService implements CollectionExhibitImpl {

    @Resource //依赖注入
    CollectionExhibitImpl Exhibit;

    @Override
    public CollectionExhibit collectionExhibit(int UserId, int ExhibitId) {
        return Exhibit.collectionExhibit(UserId, ExhibitId);
    }

    @Override
    public int addExhibit(int UserId, int ExhibitId) {
        return Exhibit.addExhibit(UserId, ExhibitId) ;
    }

    @Override
    public int delExhibit(int UserId, int ExhibitId) {
        return Exhibit.delExhibit(UserId, ExhibitId);
    }

    @Override
    public List<CollectionExhibit> lookExhibitlist(int UserId) {
        return Exhibit.lookExhibitlist(UserId);
    }

    @Override
    public com.example.proyyj.Entity.Exhibit lookExhibit(int ExhibitId) {
        return Exhibit.lookExhibit(ExhibitId);
    }
}
